// gcc cstr_test.c ../cstr.c -std=c99 -g
#include "../cstr.h"
#include "../cstr_check.h"

int main(){
    cstr_t tmp = cstr_init("Hello,", 20);
    debug_cstr(tmp);
    cstr_t tmp2 = cstr(" world\n");
    debug_cstr(tmp2);

    tmp = cstr_join(tmp, tmp2);
    debug_cstr(tmp);

    if(IS_ALPHA(tmp)){
        _print("alpha true");
    }else{
        _print("alpha false");
    }

    if(IS_SPACE_AT(tmp2, 2)){
        _print("space true");
    }else{
        _print("space false");
    }

    cstr_free(tmp2);
    cstr_free(tmp);
}
